<template>
 <div>
 </div>
</template>
<script>
export default {
  // 创建了一个组件，组件的名字为name
  name: 'Home',
  data () {
    return {
      role: ''
    }
  },
  created () {
    const role = window.sessionStorage.getItem('role')
    if (role === '管理员登录') {
      this.$router.push('/home/admin/manager')
    } else {
      this.$router.push('/home/dormitory/user')
    }
  },
  methods: {
  }
}
</script>
<style>
</style>